package com.dinzeer.slashblade_project_slr.regsiter;

import com.dinzeer.legendreliclib.Legendreliclib;
import com.dinzeer.slashblade_project_slr.entity.TheHoleEntity;
import com.dinzeer.slashblade_project_slr.entity.TheSlashStringEntity;
import net.minecraft.world.entity.EntityType;
import net.minecraft.world.entity.MobCategory;
import net.minecraftforge.registries.DeferredRegister;
import net.minecraftforge.registries.ForgeRegistries;
import net.minecraftforge.registries.RegistryObject;

import static com.dinzeer.slashblade_project_slr.Slashblade_project_slr.MODID;

public class SLREntityRegsitry {
    public static final DeferredRegister<EntityType<?>> ENTITIES =
            DeferredRegister.create(ForgeRegistries.ENTITY_TYPES,MODID);
    public static final RegistryObject<EntityType<TheSlashStringEntity>> TheSlashString =
            ENTITIES.register("the_slash_string",
                    () -> EntityType.Builder.of(TheSlashStringEntity::new, MobCategory.MISC)
                            .sized(0.5F, 0.5F) // 碰撞箱大小
                            .clientTrackingRange(4)
                            .updateInterval(1) // 更新间隔
                            .build("the_slash_string"));
    public static final RegistryObject<EntityType<TheHoleEntity>> TheHole =
            ENTITIES.register("the_hole",
                    () -> EntityType.Builder.of(TheHoleEntity::new, MobCategory.MISC)
                            .sized(0.5F, 0.5F) // 碰撞箱大小
                            .clientTrackingRange(4)
                            .updateInterval(1) // 更新间隔
                            .build("the_hole"));
}
